<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>实例生命周期钩子</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div>
        实例生命周期钩子
    </div>
</body>
<script>
    new Vue({
        data: {
            a: 1
        },
        created: function() {
            console.log('a is: '+ this.a)
        }
    })
</script>
</html>